]> dgit.raspbian.org Git - gnome-shell.git/commit
app-system: Improve StartupWMClass heuristics
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 26 Jun 2015 11:46:11 +0000 (13:46 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 26 Jun 2015 17:21:46 +0000 (19:21 +0200)
commiteac303f84c83b550afc19dc6076f4563e4039d93
treec9fa99f0b8b525b4fcfbe0d65229d20b0de930d6
parent7bdd1c625c982c43847d5dbbe2c5250ac1726586
app-system: Improve StartupWMClass heuristics

Our StartUpWMClass heuristics use a StartupWMClass -> .desktop ID
mapping built from the list of all installed applications. In case
of multiple .desktop files setting the same StartupWMClass, we
currently simply pick the last one returned by g_app_info_get_all (),
which can be a bit surprising:
A window with WM_CLASS 'emacs', launched through a .desktop file
named 'emacs.desktop' with a StartupWMClass of 'emacs' maps to ...
'emacsclient.desktop'!
Make this case a bit less random by preferring the app info whose
ID matches the StartupWMClass.

https://bugzilla.gnome.org/show_bug.cgi?id=751541
src/shell-app-system.c